package org.jsbd.boss.action;

import org.jsbd.boss.domian.SmallSatelliteNum;
import org.jsbd.boss.service.ISmallSatelliteNumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/smallSatelliteNum")
public class SmallSatelliteNumController {
	
	@Autowired
	private ISmallSatelliteNumService smallSatelliteNumService;

	/**
	 * 列表页面
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	@RequestMapping(value = "listModel")
	public String showOnlineSimulatorNumLogList(Model model) throws Exception {
		return "/smallSatelliteNum/smallSatelliteNum";
	}

	@RequestMapping(value = "getSmallSatelliteNumList")
	@ResponseBody
	public Object getOnlineSimulatorNumLogList(SmallSatelliteNum smallSatelliteNum) throws Exception {
		return smallSatelliteNumService.getSmallSatelliteNumgForMap(smallSatelliteNum);
	}
	
}
